Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 5 - Ink Objects / Ink Objects Reference
Constants and Data Types


Color Structure

The color property of an ink object is specified with a color structure (type gxColor):

struct gxColor{
   gxColorSpace space;
   gxColorProfile profile;
   union {
      struct gxCMYKColor      cmyk;
      struct gxRGBColor       rgb;
      struct gxRGBAColor      rgba;
      struct gxHSVColor       hsv;
      struct gxHLSColor       hls;
      struct gxCIEColor       cie;
      struct gxYIQColor       yiq;
      gxColorValue            gray;
      struct gxGrayaColor     graya;
      unsigned short          pixel16;
      unsigned long           pixel32;
      struct gxIndexedColor   indexed;
      gxColorValue            component[4];
   } element;
}; 
The fields of the color structure are described briefly in the section "Color" beginning on page 5-7 of this chapter, and defined in more detail in the chapter "Colors and Color-Related Objects" in this book.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996